-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #1081 #1082
Fix #1081 #1082
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1082 +/- ##
=======================================
Coverage 94.41% 94.41%
=======================================
Files 158 158
Lines 6077 6077
=======================================
Hits 5737 5737
Misses 340 340 |
return private_resource_; | ||
proto::resource::v1::Resource proto; | ||
OtlpRecordableUtils::PopulateAttribute( | ||
&proto, opentelemetry::sdk::resource::Resource::Create(resource_attributes_)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine for now. But the actual fix should be the improvement in LoggerProvider, to let the resources and instrumentation library passed through it ( similar to what we do with TracerProvider). I will create an issue for the improvements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree strongly. I could help to do this if there is any need
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. We can merge this PR. Meanwhile, have added #1086 if you would like to pick it up.
} // namespace exporter | ||
OPENTELEMETRY_END_NAMESPACE | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the recordable tests.
Signed-off-by: owent <admin@owent.net>
Signed-off-by: owentou <owentou@tencent.com>
Signed-off-by: owent admin@owent.net
Fixes #1081
Changes
opentelemetry::sdk::resource::Resource::Create
to inherit data from default resource andResourceDetector
.OtlpLogRecordable
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes